'''
Created on Apr 25, 2012

@author: jesus
'''

class Topic(object):

    def __init__(self, title = "default", description = "default"):
        self.topictitle = title
        self.topicdescription = description
        self.data = []

    def getTitle(self):
        return self.topictitle
    
    def setTitle(self, title):
        self.topictitle = title
        
    def getDescription(self):
        return self.topicdescription
    
    def setDescription(self, desc):
        self.topicdescription = desc
    
    def setIdentity(self, identity):
        self.identity = identity
        
    def getIdentity(self):
        return self.identity
    
    def getCommentList(self):
        return self.data
    
    def addComment(self, comment):
        self.data.append(comment)